package com.zengqingfa.examples.mybatisplus.chain;

import org.springframework.stereotype.Component;

@Component
public class WashHairFilter implements StudyPrepareFilter {

    @Override
    public boolean doFilter(PreparationList preparationList, FilterChain filterChain) {
        if (!preparationList.isWashHair()) {
            System.out.println("没有洗完头发");
            return false;
        }

       return filterChain.doFilter(preparationList, filterChain);
    }

}